package com.stormrage.edu.dao.learn.impl;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.stormrage.edu.dao.learn.LeaTermNessDao;
import com.stormrage.entity.learn.LeaTermNess;
import com.stormragetech.core.dao.MysBaseDao;
import com.stormragetech.core.exception.StormrageTechException;

/**
 * @Title: LeaTermNessDaoImpl.java
 * @Package com.stormrage.edu.dao.learn.impl
 * @Description: 选课数量 Dao
 * @author www.stormragetech.com
 * @date 2016年5月14日
 * @version V1.0
 */
@Repository
public class LeaTermNessDaoImpl extends MysBaseDao implements LeaTermNessDao {

	private static final Logger logger = LoggerFactory.getLogger(LeaTermNessDaoImpl.class);

	@Override
	public LeaTermNess queryByTermId(final Map<String, Object> map) throws StormrageTechException {

		logger.debug(" 【 Dao 】-【 LeaTermNessDao 】-【 queryByTermId 】-【 STARTED 】");

		final String query = "SELECT * FROM lea_term_ness WHERE term_id = :termId";
		logger.debug(" 数据库执行语句为 " + query);

		LeaTermNess entity = queryObject(query, LeaTermNess.class, map);

		logger.debug(" 【 Dao 】-【 LeaTermNessDao 】-【 queryByTermId 】-【 COMPLETED 】");
		return entity;

	}

}
